#ifndef MYCOIN_H
#define MYCOIN_H

#include <QWidget>
#include <QPushButton>
#include <QTimer>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
    explicit MyCoin(QWidget *parent = nullptr);
    MyCoin(QString butImg);
    void changeFlag();
    void mousePressEvent(QMouseEvent * e);

    int poxX;
    int posY;
    bool flag;//正反标志
    QTimer * timer1;//正面翻反面定时器
    QTimer * timer2;//反面翻正面定时器
    int min  = 1;//最小图片
    int max = 8; //最大图片
    bool isAnimation = false;//是否正在翻转

    bool isWin = false;


signals:
};

#endif // MYCOIN_H
